package com.lyz.myself.controller.login;

import com.lyz.myself.config.utils.Result;
import com.lyz.myself.controller.BaseController;
import com.lyz.myself.pojo.Po.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/guest")
public class GuestController extends BaseController {

    @RequestMapping(value = "/enter", method = RequestMethod.GET)
    public Result login(){

        User user = getUser();
        return Result.success(user,"欢迎进入，您的身份是游客");
    }

    @RequestMapping(value = "/getMessage", method = RequestMethod.GET)
    public Result submitLogin() {
        return Result.success("您拥有获得该接口的信息的权限！") ;
    }
}

